package yxy.game.pm2.active.module.subordinateclass;

import yxy.apple.util.RandomUtility.Weight;
import yxy.game.pm2.bean.Currency;

public class TurntableRandom implements Weight {

	public int rewardtype;
	public int rewardid;
	public int rewardnum;
	public int percent;
	
	public int getRewardtype() {
		return rewardtype;
	}
	public void setRewardtype(int rewardtype) {
		this.rewardtype = rewardtype;
	}
	public int getRewardid() {
		return rewardid;
	}
	public void setRewardid(int rewardid) {
		this.rewardid = rewardid;
	}
	public int getRewardnum() {
		return rewardnum;
	}
	public void setRewardnum(int rewardnum) {
		this.rewardnum = rewardnum;
	}
	public int getPercent() {
		return percent;
	}
	public void setPercent(int percent) {
		this.percent = percent;
	}
	
	public Currency getCur() {
		return Currency.create(rewardtype, rewardid, rewardnum);
	}
	
	@Override
	public int getWeight() {
		return getPercent();
	}

}
